<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="/WEB-INF/jsp/common/navigationRight.jsp"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<%@include file="/WEB-INF/jsp/common/navigationLeft.jsp"%>

<div style="width:100%; height:100%; position:fixed; z-index:100; top:0; display:none; left:0;" id="allP" >
    <div style="width:100%; height:100%; position:absolute; top:0; left:0; background:#000; opacity:0.5;"></div>
    <div style="width:404px; height:154px; background:#fff; position:absolute; top:50%; left:50%; margin-left:-252px; margin-top:-100px; border:2px solid #666;">
        <p style="color: #666666;font-size: 16px;absolute;line-height:170px;text-align: center; font-family: Microsoft YaHei;;">该项目已还清，为保护企业隐私，不再公示项目信息</p>
        <div style="width: 30px;height: 30px;position: absolute;top: 11px;right: 0px;color: #666;font-size: 20px;cursor: pointer;" id="close">X</div>
    </div>

</div>
<div class="m2-userCentermanage-con">
    <div class="m2-manage-search">
        <div class="m2-manage-search-head">
            <h3><i></i>投资记录</h3>
        </div>
        <div class="m2-manage-search-selector">
            <ul class="m2-manageSearchsel-time m2-manageSearchsel-time1" style="margin-bottom:15px">
                <li>时间范围：</li>
                <li class="m2-manageSearchsel-link m2-manageSearchsel-link1"><span class="" >全部</span></li>
                <li class="m2-manageSearchsel-link m2-manageSearchsel-link1"><span class="" ><a href="/lzy/investment?id=1&opr=week">最近7天</a></span></li>
                <li class="m2-manageSearchsel-link m2-manageSearchsel-link1"><span class="" ><a href="/lzy/investment?id=1&opr=month">一个月</a></span></li>
                <li class="m2-manageSearchsel-link m2-manageSearchsel-link1"><span class="" ><a href="/lzy/investment?id=1&opr=threeMonth">三个月</a></span></li>
                <li>从<input id="m2-manSeadate-start" type="text"></li>
                <li>到<input id="m2-manSeadate-end" onblur="searchDATE()" type="text"></li>
            </ul>
            <ul class="m2-manageSearchsel-time m2-manageSearchsel-time2" style="margin-bottom:15px">
                <li>回款状态：</li>
                <li class="m2-manageSearchsel-link m2-manageSearchsel-link2"><span class="" >全部</span></li>
                <li class="m2-manageSearchsel-link m2-manageSearchsel-link2"><span class="" >投标中</span></li>
                <li class="m2-manageSearchsel-link m2-manageSearchsel-link2"><span class="" >还款中</span></li>
                <li class="m2-manageSearchsel-link m2-manageSearchsel-link2"><span class="" >已结清</span></li>
            </ul>

            <table class="m2-userInvest-table"  cellpadding="0" cellspacing="0" >
                <tr class="m2-userInevst-head" >
                    <th style="width:250px;">项目名称</th>
                    <th style="width:120px;">投资金额</th>
                    <th style="width:60px;">收益率</th>
                    <th style="width:180px;">投资日期</th>
                    <th style="width:120px;">投资状态</th>
                    <th style="width:108px;"></th>
                </tr>

                <c:forEach items="${InvestmentList}" var="investments" varStatus="row">
                    <tr class="m2-userTable-noData">
                        <th style="width:250px;font-size: 18px">${investments.proName}</th>
                        <th style="width:120px;font-size: 18px">${investments.investAmount}</th>
                        <th style="width:60px;font-size: 18px">${investments.rate}</th>
                        <th style="width:180px;font-size: 18px">${investments.investDate}</th>
                        <th style="width:120px;font-size: 18px">${investments.staus}</th>
                        <th style="width:108px;font-size: 18px"></th>
                    </tr>
                </c:forEach>


            </table>
            <input type="hidden" value=1 class="nowpages">
            <input type="hidden" value= class="recordpages">
        </div>
    </div>
</div>
</div>

<script>

    var oP=document.getElementById('allP');
    var oClose=document.getElementById('close');
    //oP.style.display='none';
    oClose.onclick=function(){
        oP.style.display='none';
    };
    var investdata=new Array(0,0,0);
    var capitalprogress=new Array();

    /**
     * 已结束的项目不允许查看合同
     */
    function linkContractContract(that){
        var bid=that.getAttribute('bid');
        var status = that.getAttribute('status');
        if(status==7||status==11){
            oP.style.display='block';
        } else {
            window.open("member-contract-investor.shtml?id="+bid,"_blank");
        }
    }
    /**
     * 已结束的项目不允许查看合同
     */
    function linkContracttransContract(that){
        var bid=that.getAttribute('bid');
        var status = that.getAttribute('status');
        if(status==7||status==11){
            oP.style.display='block';
        } else {
            window.open("member-contracttrans-investor.shtml?id="+bid,"_blank");
        }
    }
    /**
     * 已结束的项目不允许下载合同
     */
    function linkDownload(that){
        var bid=that.getAttribute('bid');
        var status = that.getAttribute('status');
        if(status==7||status==11){
            oP.style.display='block';
        } else {
            window.open("Member-Contract-createAndSendPdfbyid?id="+bid,"_blank");
        }
    }


    /**
     * 一段时间的投资
     */
    function searchDATE() {
        var begin = $("#m2-manSeadate-start").val();
        var end = $("#m2-manSeadate-end").val();
        window.location.href="/lzy/investment?id="+1+"&begin="+begin+"&end="+end;
    }
</script>





<script type="text/javascript" src="${pageContext.request.contextPath }/statics/statics/usercenter/js/m2-userCenter-invest.js"></script>

</body>
</html>